Add a module to convert straw digis to artdaq fragments#1775
Add a module to convert straw digis to artdaq fragments#1775
Conversation
|
Hi @michaelmackenzie,
which require these tests: build. @Mu2e/write, @Mu2e/fnalbuild-users have access to CI actions on main. ⌛ The following tests have been triggered for 9649ba9: build (Build queue - API unavailable) |
|
☔ The build tests failed for 9649ba9.
N.B. These results were obtained from a build of this Pull Request at 9649ba9 after being merged into the base branch at b4e91ff. For more information, please check the job page here. |
pavel1murat
left a comment
There was a problem hiding this comment.
let it be. I approve
|
Let me review the actual code changes in this PR.Let me get the actual file contents from the PR branch to review the code changes.Here is my review of PR #1775. I've identified the following issues across the 4 changed files:
|
| # | Severity | File | Issue |
|---|---|---|---|
| 1 | 🔴 High | StrawDigisToFragments_module.cc |
Module in art:: namespace instead of mu2e:: |
| 2 | 🟡 Medium | StrawDigisToFragments_module.cc |
TrackerDataPacket not zero-initialized (indeterminate bits) |
| 3 | 🟡 Medium | StrawDigisToFragments_module.cc |
uint16_t overflow risk in transferByteCount |
| 4 | 🟡 Medium | StrawDigisToFragments_module.cc |
skipFragmentOnSizeMismatch_ is unused dead code |
| 6 | 🟡 Medium | StrawDigisToFragments_module.cc |
Empty ROC blocks emitted for unused links |
| 7 | 🟡 Medium | StrawDigisToFragments_module.cc |
Trailing ADC samples silently truncated |
| 12 | 🟡 Medium | CMakeLists.txt |
Missing Offline::DataProducts for comparator |
| 5, 10 | 🔵 Low | Both modules | Inconsistent indentation |
| 8, 9 | 🔵 Low | StrawDigisToFragments_module.cc |
Style: prefer make_unique, in-class init |
| 13 | 🔵 Low | Both new files | std::cout instead of message facility |
|
Responding to the AI comments:
|
|
@FNALbuild run build test |
|
⌛ The following tests have been triggered for 40abec9: build (Build queue - API unavailable) |
|
☀️ The build tests passed at 40abec9.
N.B. These results were obtained from a build of this Pull Request at 40abec9 after being merged into the base branch at 723b9b1. For more information, please check the job page here. |
This was mostly generated using AI. It produces artdaq fragments from straw digis/waveforms. The goal is to have fragments from Offline simulations to help characterize the Online trigger while waiting for real beam data. The actual panel mapping won't be very sensible here yet, so I had to add the option to override the panel mapping with the Offline straw ID.
I validated that on 1k events I get identical digi collections (including waveforms). I also found when using the calo version of this as well I get identical trigger results on these 1k events (after correcting a bug in calo reco that introduces digi collection order dependence, which Bertrand is aware of an investigating).
Here is an example fcl to test this:
Once this and the calo PR (#1774) are merged, I believe we'll be ready to repeat trigger timing studies, this time starting from fragments.